package rsb21411ls.d1109;

public class FunctionDemo02 {
    public static void main(String[] args) {
        //调用对象的方法 创建对象 对象名.方法名（）；
        Student student=new Student();
        //方法需要一个int 参数
        int[] arr ={1,3,6,98,6,85,500,378};
        System.out.println("总成绩是"+Student.add(arr));
        Ball soccerBall =new Ball("足球",600);
        Student.play(soccerBall);
        Student.play(new Ball("足球",450));
        Student.play(new Ball("篮球",300));
    }
}
